<include file="Public:header" />
<div class="alert alert-info">
    菜品材料添加
</div>
<form class="form-horizontal" method="post" action="__URL__/add" onsubmit="return ajax_submit(this);">
    <div class="control-group">
        <label class="control-label" >菜品材料名称<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="stuff_name" placeholder="长度不超过15位" maxlength="15" required>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">菜品材料种类<span class="require">*</span></label>
        <div class="controls">
            <select name="stuff_type" required>
                <option value="-1">--选择一个材料种类--</option>
                <option value="主料">主料</option>
                <option value="辅料">辅料</option>
                <option value="主料或辅料">主料或辅料</option>
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">菜品材料单价<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="stuff_price" placeholder="长度不超过6位" maxlength="6" required>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">菜品材料单位<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="stuff_unit" placeholder="长度不超过4位" maxlength="4" required>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" value="确　定" class="btn btn-primary" data-target="#myModal"/>
            <span class="btn btn-warning" onclick="history.back(-1);">返　回</span>
        </div>
    </div>
    <input type="hidden" name="send" value="sub"/>
</form>

<include file="Public:check"/>

</body>
</html>